"""src URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""

from django.urls import path
from common import views

urlpatterns = [
    # 登录
    path("login", views.common_login),
    # 小程序登录
    path("miniLogin", views.AppLoginView.as_view()),
    # 发送短信验证码
    path("sendMessage", views.send_message),
    # 逆地理编码
    path("regeoLocation", views.regeo_location),
    # 上传文件
    path("uploadFile", views.upload_file),
    # 获取服务器时间
    path("getservetime", views.get_serve_time),
    # 更新头像
    path("updateProfile", views.update_profile),
    # 获取个人资料
    path("getUserInfo", views.get_user_info)
]
# print(urlpatterns)
